{extend name="layout/layout" /}
{block name="title"}邮件配置{/block}
{block name="main"}
<style>
    .layui-form-label {
        width: 10%;
    }
</style>
<div>
    <div class="layui-col-md12">
        <div class="layui-card">
            <div class="layui-card-header">邮件服务</div>
            <div class="layui-card-body">

                <div class="layui-form">
                    <div class="layui-form-item">
                        <label class="layui-form-label">SMTP服务器</label>
                        <div class="layui-input-inline">
                            <input name="host" value="{:config('mails.host')}" class="layui-input" type="text">
                        </div>
                        <div class="layui-form-mid layui-word-aux">如：smtp.163.com</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">SMTP端口号</label>
                        <div class="layui-input-inline" style="width: 80px;">
                            <input name="port" lay-verify="number" value="{:config('mails.port')}" class="layui-input"
                                   type="text">
                        </div>
                        <div class="layui-form-mid layui-word-aux">一般为 25 或 465</div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发件人邮箱</label>
                        <div class="layui-input-inline">
                            <input name="username" value="{:config('mails.username')}" lay-verify="email"
                                   autocomplete="off"
                                   class="layui-input" type="text">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">发件人昵称</label>
                        <div class="layui-input-inline">
                            <input name="nickname" value="{:config('mails.nickname')}" autocomplete="off"
                                   class="layui-input" type="text">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">登入密码或授权码</label>
                        <div class="layui-input-inline">
                            <input name="password" value="{:config('mails.password')}" autocomplete="off"
                                   class="layui-input"
                                   type="password">
                        </div>
                    </div>
                </div>

            </div>
        </div>
    </div>
</div>
{/block}
{block name="js"}
<script>
    ;!function () {
        //无需再执行layui.use()方法加载模块，直接使用即可
        var form = layui.form
            , layer = layui.layer;
    }();

</script>
{/block}